import QtQuick 2.2

/*
* 路径 
*/

Canvas {
	width: 400;
	height: 240;
	contextType: "2d";

	onPaint: {
		context.lineWidth = 2;
		context.strokeStyle = "red";
		context.fillStyle = "blue";
		context.beginPath();
		context.moveTo(100,80);
		context.lineTo(100,200);
		context.lineTo(300,200);
		context.closePath();
		context.fill();
		context.stroke();
	}
}
